import React from 'react'
import Count from './components/Count'

function Test() {
  return <p>test组件</p>
}
export default class App extends React.Component {
  state = {
    xxx: 'xxx',
    yyy: 'yyy',
    zzz: 'zzz',
    str: '123',
    arr: ['a', 'b'],
  }
  render() {
    return (
      <div id="app">
        根组件
        <hr />
        {/* 批量传递: 批量传递某个对象里面的数据 */}
        <Count
          {...this.state}
          aaa={<h1>ceshi </h1>}
          eleType={Test}
          ele={<Test></Test>}
        ></Count>
        <hr />
      </div>
    )
  }
}
